package com.javatiaocao.myblog.mapper;

import com.javatiaocao.myblog.model.LeaveMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LeaveWordMapper {
    int countLeaveWordNum();

    List<LeaveMessage> getnewLeaveWord();

    List<LeaveMessage> getPageLeaveMessage(String pageName);

    void publishLeaveMessage(LeaveMessage leaveMessage);

    List<LeaveMessage> getReplies(@Param("pId") int pId,@Param("pageName") String pageName);

    int getRepliesNum(@Param("pId") int pId,@Param("pageName") String pageName);
}
